#ifndef MYCEMERAABS_H
#define MYCEMERAABS_H


#include <QAbstractVideoSurface>
#include <QPixmap>

class MyCameraABS : public QAbstractVideoSurface
{
    Q_OBJECT
public:
    MyCameraABS(QObject *parent = Q_NULLPTR);

    bool present(const QVideoFrame &frame);
    QList<QVideoFrame::PixelFormat> supportedPixelFormats(QAbstractVideoBuffer::HandleType type = QAbstractVideoBuffer::NoHandle) const;

signals:
    void camera_signal(QPixmap& pic);

};

#endif // MYCEMERAABS_H
